P°ehled pohledßvek=select CF,DV,DS,FIRMA,CELKEM,MENA,STAV,FU from faktury where (zaplaceno=false) and (storno<>true) order by ds,cf
P°ehled p°φjm∙=select CF,DV,DS,DZ,FIRMA,CELKEM,MENA,STAV,FU from faktury where (zaplaceno=true) and (storno<>true) order by dz,cf
podle zaplacen²ch doklad∙=select CF,DZ,DV,DS,FIRMA,CELKEM,MENA,STAV,FU from faktury where (zaplaceno=true) and (storno<>true) order by dz,cf
podle vystaven²ch doklad∙=select CF,DV,DS,DZ,FIRMA,CELKEM,MENA,STAV,FU from faktury where storno<>true order by dv,cf
P°ehled zßvazk∙=select CF,DS,DV,FIRMA,CELKEM,FU from pfakt where zaplaceno<>true order by ds,cf
P°ehled v²daj∙=select CF,DV,DS,DZ,FIRMA,CELKEM,FU from pfakt where zaplaceno=true order by dz,cf
P°ehled prodan²ch polo₧ek=select CF,DZ,PARTNUM,NAZEV,p.MNOZSTVI,JEDNOTKA,p.CENA,p.DPH,p.CENADPH,p.SLEVA,((p.MNOZSTVI*p.CENA)-((p.MNOZSTVI*p.CENA)/100)*p.sleva) CELKEM,((p.MNOZSTVI*p.CENADPH)-((p.MNOZSTVI*p.CENADPH)/100)*p.sleva) CELKEMSDPH,MENA,STAV,FU,FIRMA from faktury f left join polozky p on f.pc=p.cf where (f.storno<>true) and (f.zaplaceno=true) order by DZ,CF
P°ehled koupen²ch polo₧ek=select CF,DZ,PARTNUM,NAZEV,n.MNOZSTVI,n.JEDNOTKA,CENAMJ,n.DPH,CENAMJDPH,(n.MNOZSTVI*n.CENAMJ) CELKEM,(n.MNOZSTVI*n.CENAMJDPH) CELKEMSDPH,DRUH,FIRMA from pfakt p left join nakup n on p.pc=n.pc order by dz,nazev
P°ehled nßkup∙ na sklad=select CF,DZ,PARTNUM,NAZEV,n.MNOZSTVI,n.JEDNOTKA,CENAMJ,n.DPH,CENAMJDPH,(n.MNOZSTVI*n.CENAMJ) CELKEM,(n.MNOZSTVI*n.CENAMJDPH) CELKEMSDPH,FIRMA from pfakt p left join nakup n on p.pc=n.pc where druh='Skladovß polo₧ka' order by dz,nazev
Souhrn p°φjm∙ podle dn∙=select DZ,sum(celkem) CELKEM from faktury where (zaplaceno=true) and (storno<>true) group by dz order by dz
Souhrn v²daj∙ podle dn∙=select DZ,sum(celkem) CELKEM from pfakt where (zaplaceno=true) group by dz order by dz
Nejprodßvan∞jÜφ produkty=select nazev, sum(mnozstvi) mnozstvi, jednotka from polozky where mnozstvi>0 group by nazev,jednotka order by mnozstvi desc
Nejvφce vyd∞lßvajφcφ produkty=select nazev, sum(celkem) mnozstvi from polozky where (celkem>0) and (mnozstvi>0) group by nazev order by mnozstvi desc
P°ehled prodeje=select datum,cas,nazev,partnum,mnozstvi,jednotka,cena,dph,cenadph,(mnozstvi*cena) celkembezdph, celkem,ucet from uctypol order by datum,cas,nazev
P°ehled p°φjm∙ na sklad=select datum,nazev,partnum,mnozstvi,jednotka,doklad from prijem order by datum
P°ehled odpis∙ ze skladu=select datum,nazev,mnozstvi,jednotka,duvod from odpisy